from django.db import models

# Create your models here.

# 新建新闻表
class New(models.Model):
    username=models.CharField(max_length=50,verbose_name='用户名')
    password=models.CharField(max_length=300,verbose_name='密码')
    content=models.CharField(max_length=50,verbose_name='内容')
    headline=models.CharField(max_length=50,verbose_name='广告')
    # 自定义表名
    class Meta():
        db_table='new'
